package com.sky.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author 贾晓晨
 * @version 1.0
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class HomeOtherVO implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty("文章、视频、评论总数")
    private HomeCountVO countVO;
    @ApiModelProperty("资讯信息和十条最新评论")
    private HomeInfo info;

    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    // 总数
    public static class HomeCountVO implements Serializable{
        // 文章数量
        private Integer articleCount;
        // 视频数量
        private Integer radioCount;
        // 评论总数
        private Integer commentCount;
    }
    @Data
    @Builder
    @AllArgsConstructor
    @NoArgsConstructor
    public static class HomeInfo implements Serializable {
        // 资讯信息
        private List<AnnouncementsVO> information;
        // 最新评论
        private List<ArticleChildCommentVo> newComment;
    }
}
